Add program requirements parsing and optional-course shelf (backend + frontend)#21
Open
an-andrey wants to merge 24 commits into
Open
Add program requirements parsing and optional-course shelf (backend + frontend)#21an-andrey wants to merge 24 commits into
an-andrey wants to merge 24 commits into
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Motivation
static/json/courses_info.json.Description
scripts/Getting_Info_For_Major/program_requirements.pythat extracts requirement buckets, maps courses to buckets, and computes credit totals, and return a requirements object viaextract_program_requirements.scripts/Getting_Info_For_Major/get_courses_of_major.pyby introducingget_program_soup, a regex-based course code extractor, andget_course_metadata_from_program_pagefallback metadata extraction.scripts/Getting_Info_For_Major/get_information_for_major.pyto call the new requirement extractor and return(prereqs, details, requirements)and annotate course details with bucket/category/credits/include flags.app.py:rebuild_requirements_from_detailsto synthesize requirements from details andmerge_program_requirementsto combine multiple program buckets, and persistprogram_requirementsandcredit_requirementsin session and templates.static/js/optional_courses.jsand wire it up viamain.jsandprogram_handler.jsto render an optional course shelf, allow adding/removing optional courses, and merge requirements from added programs; updatestatic/js/data_init.jsto respectinclude_in_graphandstatic/js/sheet_view.jsto render requirement bucket progress and credit ranges.static/css/style.css, add optional-shelf and requirement buckets UI totemplates/graph.html, and injectprogramRequirementsinto the page JS context.Testing
Codex Task